package com.kuaidi100.sdk.response;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @Author: api.kuaidi100.com
 * @Date: 2020-07-17 10:04
 */
public class AutoNumResp {
    /**
     * 请忽略
     */
    public String lengthPre;
    /**
     * 快递公司对应的编码
     */
    private String comCode;
    /**
     * 请忽略
     */
    private String noPre;
    /**
     * 请忽略
     */
    private String noCount;

    @Override
    public String toString() {
        try {
            ObjectMapper objectMapper = new ObjectMapper();
            return objectMapper.writeValueAsString(this);
        } catch (Exception e) {
            return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                    .append("lengthPre", lengthPre)
                    .append("comCode", comCode)
                    .append("noPre", noPre)
                    .append("noCount", noCount)
                    .toString();
        }
    }

    public String getLengthPre() {
        return lengthPre;
    }

    public void setLengthPre(String lengthPre) {
        this.lengthPre = lengthPre;
    }

    public String getComCode() {
        return comCode;
    }

    public void setComCode(String comCode) {
        this.comCode = comCode;
    }

    public String getNoPre() {
        return noPre;
    }

    public void setNoPre(String noPre) {
        this.noPre = noPre;
    }

    public String getNoCount() {
        return noCount;
    }

    public void setNoCount(String noCount) {
        this.noCount = noCount;
    }
}
